package com.infnoon.parking.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName parking_lot
 */
@TableName(value ="parking_lot")
@Data
public class ParkingLot implements Serializable {
    /**
     * 
     */
    @TableId
    private Integer carLotNumber;

    /**
     * 
     */
    private Integer level;

    /**
     * 
     */
    private Integer ifparked;

    /**
     * 
     */
    private String lot_Type;

    /**
     * 
     */
    private Double lot_Long;

    /**
     * 
     */
    private Double lot_wide;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ParkingLot other = (ParkingLot) that;
        return (this.getCarLotNumber() == null ? other.getCarLotNumber() == null : this.getCarLotNumber().equals(other.getCarLotNumber()))
            && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
            && (this.getIfparked() == null ? other.getIfparked() == null : this.getIfparked().equals(other.getIfparked()))
            && (this.getLot_Type() == null ? other.getLot_Type() == null : this.getLot_Type().equals(other.getLot_Type()))
            && (this.getLot_Long() == null ? other.getLot_Long() == null : this.getLot_Long().equals(other.getLot_Long()))
            && (this.getLot_wide() == null ? other.getLot_wide() == null : this.getLot_wide().equals(other.getLot_wide()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCarLotNumber() == null) ? 0 : getCarLotNumber().hashCode());
        result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode());
        result = prime * result + ((getIfparked() == null) ? 0 : getIfparked().hashCode());
        result = prime * result + ((getLot_Type() == null) ? 0 : getLot_Type().hashCode());
        result = prime * result + ((getLot_Long() == null) ? 0 : getLot_Long().hashCode());
        result = prime * result + ((getLot_wide() == null) ? 0 : getLot_wide().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", carLotNumber=").append(carLotNumber);
        sb.append(", level=").append(level);
        sb.append(", ifparked=").append(ifparked);
        sb.append(", lot_Type=").append(lot_Type);
        sb.append(", lot_Long=").append(lot_Long);
        sb.append(", lot_wide=").append(lot_wide);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}